package trace

import (
	"io"
	"strings"

	"xp/lib/beanstalk"
	"xp/lib/etc"
)

var (
	writer  io.Writer
	tube    = etc.Str("trace", "tube")
	sockets = strings.Split(etc.Str("beanstalkd", "uri"), ",")
)

func init() {
	writer = beanstalk.NewProducer(sockets, tube)
}
